/*
 * @Author: your name
 * @Date: 2020-09-21 20:07:36
 * @LastEditTime: 2020-11-12 09:12:56
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \inventory-apie:\hjimi\人脸\html\face-recognition\src\api\deviceControl.js
 */
 
import request from '@/utils/request'

let apis = 'apis/api/user/api/'

// 设备列表查询
/**
 * @description: 
 * @param {createDateFrom,createDateTo,current,size,sn,status} 
 * @return {type} 
 */
export function deviceList(params) {
  return request({
    url: `${ apis }terminal`,
    method: "get",
    params,
  })
}
// 添加设备
/**
 * @description: 
 * @param {datas} 
 * @return {type} 
 */
export function addDevice(params) {
  return request({
    url: `${ apis }terminal`,
    method: "post",
    params,
  })
}

//删除/批量删除设备sn
/**
 * @description: 
 * @param {datas，status} 
 * @return {type} 
 */
export function deviceStatus(params) { 
  return request({
    url: `${ apis }terminal/status`,
    method: "post",
    params,
  })
}

 